﻿using AutoMapper;

namespace Himp.Erp;

public class ErpApplicationAutoMapperProfile : Profile
{
    public ErpApplicationAutoMapperProfile()
    {
        #region 物料

        CreateMap<MatlInfoCreateDto, MatlInfo>();
        CreateMap<MatlInfoUpdateDto, MatlInfo>();
        CreateMap<MatlInfo, MatlInfoDto>();
        CreateMap<MatlSupplierCreateOrUpdateDto, MatlSpler>();
        CreateMap<MatlSpler, MatlSplerDto>();
        CreateMap<MatlWhseCreateOrUpdateDto, MatlWhse>();
        CreateMap<MatlWhse, MatlWhseDto>();

        #endregion

        #region 药品

        CreateMap<DrugPrdrCreateDto, DrugPrdr>();
        CreateMap<DrugPrdrUpdateDto, DrugPrdr>();
        CreateMap<DrugPrdr, DrugPrdrDto>();

        CreateMap<DrugPrdrCreateDto, DrugPrdr>();
        CreateMap<DrugPrdrUpdateDto, DrugPrdr>();
        CreateMap<DrugPrdr, DrugPrdrDto>();

        CreateMap<DrugCatalogTypeCreateOrUpdateDto, DrugCatalogType>();
        CreateMap<DrugCatalogType, DrugCatalogTypeDto>();

        CreateMap<DrugCatalogExtCreateOrUpdateDto, DrugCatalogExt>();
        CreateMap<DrugCatalogExt, DrugCatalogExtDto>();

        CreateMap<DrugCatalogCreateOrUpdateDto, DrugCatalog>();
        CreateMap<DrugCatalog, DrugCatalogDto>();

        CreateMap<DrugCatalogAssocChrgitmType, DrugCatalogAssocChrgitmTypeDto>();

        #endregion

        #region 库存

        CreateMap<InboundRec, InboundRecDto>();
        CreateMap<InboundRecCreateOrUpdateDto, InboundRec>();
        CreateMap<InboundDetl, InboundDetlDto>();
        CreateMap<InboundDetlCreateOrUpdateDto, InboundDetl>();

        CreateMap<InvChgType, InvChgTypeDto>();
        CreateMap<InvChgTypeCreateOrUpdateDto, InvChgType>();
        CreateMap<MatlInv, MatlInvDto>();

        CreateMap<OutboundRec, OutboundRecDto>();
        CreateMap<OutboundRecCreateOrUpdateDto, OutboundRec>();
        CreateMap<OutboundDetl, OutboundDetlDto>();
        CreateMap<OutboundDetlCreateOrUpdateDto, OutboundDetl>();

        #endregion
    }
}
